import './assets/main.scss'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { createPersistedState } from 'pinia-persistedstate-plugin'
import router from '@/router'
import App from './App.vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

const app = createApp(App)

// 创建 Pinia 实例
const pinia = createPinia()

const persist = createPersistedState()

pinia.use(persist) // 使用持久化插件

app.use(router) // 在应用中使用路由
app.use(pinia) // 在应用中使用 Pinia
app.use(ElementPlus)

app.mount('#app') // 挂载应用


